package com.gopay.bis.bocom.ebank.impl;

import com.gopay.bis.bocom.ebank.operation.BocomB2bQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.bocom.ebank.pay.b2b.req.BocomB2bReq;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

public class BocomB2bBankServiceImpl implements BankService {

	private ICertHelper bocomB2bCertHelper;
	
	private BocomB2bQuery bocomB2bQuery;
	
	public Object sign(BaseMessage message) throws GopayException {
		return bocomB2bCertHelper.sign(message);
	}

	public Object verify(BaseMessage message) throws GopayException {
		return bocomB2bCertHelper.verify(message);
	}

	public Object query(Object obj) throws GopayException {
		BaseMessage b2bQuery = (BaseMessage) obj;
		BocomB2bReq res = bocomB2bQuery.query(b2bQuery);
		return res;
	}

	public ICertHelper getBocomB2bCertHelperB2b() {
		return bocomB2bCertHelper;
	}

	public void setBocomB2bCertHelper(ICertHelper bocomB2bCertHelper) {
		this.bocomB2bCertHelper = bocomB2bCertHelper;
	}

	public BocomB2bQuery getBocomB2bQuery() {
		return bocomB2bQuery;
	}

	public void setBocomB2bQuery(BocomB2bQuery bocomB2bQuery) {
		this.bocomB2bQuery = bocomB2bQuery;
	}

	@Override
	public Object dayend(Object obj) throws GopayException {
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
